:root {
    /* Font weight */
    --weight-thin: 100;
    --weight-extra-light: 200;
    --weight-light: 300;
    --weight-regular: 400; 
    --weight-medium: 500;
    --weight-semi-bold: 600;
    --weight-bold: 700;
    --weight-extra-bold: 800;
    --weight-black: 900;
}

.theme-mark {
    position: absolute;
    right: -10vw;
    bottom: -5vw;
    width: min(72vw, 1100px);
    pointer-events: none;
    user-select: none;
    z-index: -1;
}

.case-hero {
    position: relative;
    padding-top: 240px;
    padding-bottom: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 0;
}

body {
    overflow: hidden;
}

.case-hero h1 {
    width: fit-content;
    line-height: 100px;
}

.case-hero h1 .big {
    font-weight: var(--weight-bold);
    margin: 0;
}

.case-hero h1 .small {
    font-size: 60px;
    color: #fff;
}

.case-hero h1 .big {
    font-size: 96px;
    font-weight: var(--weight-semi-bold);
}

.case-hero .contain-line {
    display: flex;
    gap: 15px;
}

.case-hero .contain-line .line {
    margin-top: 24px;
    height: 1px;
    width: 85px;
}

.case-hero .contain-line p {
    font-weight: 300;
    margin: 0;
    font-size: 24px;
    width: 50%;
}

@media (max-width:  1399.98px) {
    .case-hero h1 .small {
        font-size: 54px;
    }

    .case-hero h1 .big {
        font-size: 90px;
        height: 90px;
    }

    .case-hero .contain-line p {
        font-size: 21px;
        width: 55%;
    }
}

@media (max-width: 1199.98px) {
    .case-hero h1 .small {
        font-size: 50px;
    }

    .case-hero h1 .big {
        font-size: 88px;
        height: 80px;
    }
}

@media (max-width: 991.98px) {
    .case-hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .case-hero .contain-line {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .case-hero .contain-line .line {
        width: 50%;
        display: block;
        margin: auto;
        background: var(--gra1);
    }

    .case-hero h1 {
        text-align: center;
        width: 100%;
        line-height: 70px;
    }

    .case-hero .contain-line p {
        text-align: center;
        width: 80%;
        display: block;
        margin: auto;
    }

    .case-hero h1 .small {
        font-size: 46px;
    }

    .case-hero h1 .big {
        font-size: 78px;
        height: 80px;
    }

    .case-hero .contain-line p {
        font-size: 20px;
    }
}

@media (max-width: 767.98px) {
    .case-hero {
        padding-bottom: 120px;
    }

    .case-hero h1 {
        height: 70px;
    }

    .case-hero h1 .small {
        font-size: 38px;
        display: none;
    }

    .case-hero h1 .big {
        font-size: 52px;
        height: 80px;
        text-align: center;
        width: 100%;
    }

    .case-hero .contain-line p {
        font-size: 19px;
        width: 90%;
    }

    .theme-mark {
        display: none;
    }

}

@media (max-width: 575.98px) {
    .case-hero {
        padding-top: 80px;
    }

    .case-hero h1 {
        height: 60px;
    }

    .case-hero h1 .big {
        font-size: 40px;
    }
}

@media (max-width: 414px) {

}

/* all-case */
.all-case {
    padding-top: 445px;
    padding-bottom: 40px;
    position: relative;
    z-index: 0;
}

.all-case .container.frist {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 50%;
    transform: translate(-50%, -20%);
}

.all-case .row {
    margin-bottom: 50px;
}

.all-case .card-case {
    padding: 0 10px;
}

.all-case .card-case a {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease;
    text-decoration: none;

    background:#fff;
    border:1px solid #eae6df;
    border-radius:16px;
    overflow:hidden;
    box-shadow: 0px 4px 15px rgb(0, 0, 0, 0.15);
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.all-case .card-case a:hover {
    transform: scale(1.01);
    box-shadow:0 12px 30px rgba(0,0,0,.12);;
    border-color: rgba(224,177,49,.35);
}

.all-case .card-case a {
    display: flex;
    flex-direction: column;
}

.all-case .contain-img {
    position: relative;
    display: inline-block;
    overflow: hidden;
    height: 230px;
}

.all-case .contain-img .bgr {
    width: 100%;
    height: 100%;
    position: relative;
    display: inline-block;
}

.all-case .contain-img .bgr::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(119, 86, 40, 0.15);
    opacity: 0.95;
    z-index: 1;
}

.all-case .contain-img .bgr::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .06) 100%);
    pointer-events: none;
}

.all-case .contain-img .bgr img {
    width: 100%;
    height: 100%;
    display: block;
}

.all-case .contain-img .contain-logo {
    width: 50%;
    height: 40%;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
}

.all-case .contain-img .contain-logo img {
    width: 80%;
    display: block;
    margin: auto;
}

.all-case .content {
    padding: 20px 18px 30px 18px;
}

.all-case .content h5 {
    color: #3A3A3A;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    height: 60px; 
    letter-spacing: -.01em;
    line-height: 1.25;
}

.all-case .content p {
    font-family: "Inter";
    font-weight: var(--weight-light);
    font-size: 18px;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 5;
    line-height: 28px;
    height: 140px; 
    color: #5a554e;
}


@media (max-width:  1399.98px) {
    .all-case {
        padding-top: 435px;
    }

    .all-case .content h5 {
        font-size: 23px;
        margin-bottom: 20px;
        -webkit-line-clamp: 2;
        line-height: 30px;
        height: 60px; 
    }

    .all-case .content p {
        font-size: 17px;
        -webkit-line-clamp: 5;
        line-height: 26px;
        height: 130px; 
    }
}

@media (max-width: 1199.98px) {
    .all-case {
        padding-top: 395px;
    }

    .all-case .row {
        margin-bottom: 40px;
    }

    .all-case .card-case {
        padding: 0 8px;
    }

    .all-case .contain-img {
        height: 210px;
    }

    .all-case .content {
        padding: 18px 16px 26px 16px;
    }

    .all-case .content h5 {
        font-size: 20px;
        margin-bottom: 18px;
        line-height: 28px;
        height: 56px; 
    }

    .all-case .content p {
        font-size: 16px;
        line-height: 24px;
        height: 120px; 
    }
}

@media (max-width: 991.98px) {
    .all-case {
        padding-top: 330px;
    }

    .all-case .row {
        margin-bottom: 30px;
    }

    .all-case .card-case {
        padding: 0 5px;
    }

    .all-case .contain-img {
        height: 170px;
    }

    .all-case .content {
        padding: 12px 10px 20px 10px;
    }

    .all-case .content h5 {
        font-size: 16px;
        margin-bottom: 14px;
        line-height: 26px;
        height: 52px; 
    }

    .all-case .content p {
        font-size: 15px;
        line-height: 22px;
        height: 110px; 
    }
}

@media (max-width: 767.98px) {
    .all-case {
        padding-top: 1100px;
    }

    .all-case .container.frist {
        transform: translate(-50%, -10%);
    }

    .all-case .row {
        margin-bottom: 8px;
    }

    .all-case .card-case {
        padding: 8px 14%;
    }

    .all-case .contain-img {
        height: 200px;
    }

    .all-case .content {
        padding: 16px 16px 20px 16px;
    }

    .all-case .content h5 {
        font-size: 22px;
        margin-bottom: 14px;
        line-height: 26px;
        height: 52px; 
    }

    .all-case .content p {
        font-size: 16px;
        line-height: 22px;
        -webkit-line-clamp: 4;
        height: 88px; 
    }

}

@media (max-width: 575.98px) {
    .all-case .content h5 {
        font-size: 20px;
        margin-bottom: 14px;
        line-height: 26px;
        height: 52px;
    }

    .all-case .content p {
        font-size: 14px;
        -webkit-line-clamp: 5;
        line-height: 20px;
        height: 98px;
    }
}

@media (max-width: 414px) {
    .all-case .card-case {
        padding: 8px 8%;
    }

    .all-case .content h5 {
        font-size: 18px;
        margin-bottom: 14px;
        line-height: 26px;
        height: 52px;
    }

    .all-case .content p {
        font-size: 13px;
        -webkit-line-clamp: 5;
        line-height: 20px;
        height: 98px;
    }
}


/* .call-to-action {
    margin-top: 0px;
} */


:root{
  --c-gold:#e0b131;
  --c-yellow:#ffd76a;
  --c-text:#2d2a26;
  --c-border:#eae6df;
  --shadow:0 6px 18px rgba(0,0,0,.06);
  --shadow-lg:0 12px 30px rgba(0,0,0,.12);
}

/* Grid responsive */
.case-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap: 28px;
}
@media (max-width: 991px){
  .case-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
}
@media (max-width: 640px){
  .case-grid{ grid-template-columns:1fr; gap:18px; }
}

/* Card */
.case-card{
  background:#fff;
  border:1px solid #eae6df;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,.06);;
  display:flex;
  flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.case-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color: rgba(224,177,49,.35);
}

/* Media area (16:9), logo center, nền gradient vàng nhẹ */
.case-media{
  position:relative;
  aspect-ratio:16/9;
  background:
    radial-gradient(60% 80% at 50% 40%, rgba(224,177,49,.25), transparent 65%),
    linear-gradient(180deg, #f9f6ee 0%, #f3eee4 100%);
}
.case-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.06) 100%);
  pointer-events:none;
}
.case-logo{
  position:absolute; inset:0;
  margin:auto;
  max-width:min(68%,360px);
  max-height:60%;
  width:auto; height:auto;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.08));
  transition: transform .25s ease;
}
.case-card:hover .case-logo{ transform:scale(1.03); }

/* Body */
.case-body{
  padding:22px 24px 20px;
  display:flex; flex-direction:column;
  gap:12px;
  color:var(--c-text);
}
.case-title{
  margin:0;
  font-weight:800;
  letter-spacing:-.01em;
  font-size:clamp(18px, 1.4vw, 22px);
  line-height:1.25;
}
.case-desc{
  margin:0;
  color:#5a554e;
  line-height:1.6;
  display:-webkit-box;
  -webkit-line-clamp:3;          /* chặn 3 dòng để thẳng hàng */
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Meta tags */
.case-meta{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(224,177,49,.35);
  background:linear-gradient(180deg,#fff, #fff8e9);
  color:#6b5a2c;
}

/* CTA */
.case-cta{
  margin-top:auto;
  display:inline-flex; align-items:center; gap:10px;
  padding-top:10px;
  font-weight:600;
  text-decoration:none;
  color:#7a5a00;
}
.case-cta svg{
  width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8;
  transition: transform .2s ease;
}
.case-cta:hover svg{ transform:translateX(4px); }

/* Section heading (tùy chọn) */
.case-section .sec-head{
  display:flex; align-items:center; gap:16px; margin-bottom:20px;
}
.case-section .sec-head .line{
  width:56px; height:2px; background:linear-gradient(90deg,#9c6a00, #ffd76a);
  border-radius:2px;
}


:root{
  --c-text:#2d2a26;
  --c-gold:#E0B131;
  --c-yellow:#FFD76A;
  --c-border:#EAE6DF;
  --shadow:0 6px 18px rgba(0,0,0,.06);
}

/* ---- pre area under heading ---- */
.case-pre{
  position: relative;
  margin: 50px 0 26px;
  padding: 8px 0 6px;
  isolation: isolate;
}

/* chips/badges */
.case-badges{
  display:flex; flex-wrap:wrap; gap:10px 12px;
  margin-bottom:14px;
}
.cbadge{
  font-size:12.5px; line-height:1;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(224,177,49,.35);
  background:#fff;
  color:#6b5a2c; font-weight:600;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: default;
}
.cbadge:hover{ transform: translateY(-1px); box-shadow:0 10px 22px rgba(0,0,0,.08); }

/* mini-stats */
.case-stats{
  display:flex; flex-wrap:wrap; gap:18px 28px;
  color:#5a554e; font-size:14.5px;
}
.case-stats > div{
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:10px;
  background:#fff; border:1px solid var(--c-border);
  box-shadow: var(--shadow);
}
.case-stats strong{
  font-size:16px; color:#7a5a00;
}

/* gradient divider */
.case-divider{
  height:2px; border-radius:2px; margin-top:18px;
  background:linear-gradient(90deg,#9c6a00 0%, #ffd76a 50%, #9c6a00 100%);
  opacity:.65;
}

@media (max-width: 992px) {
    .case-badges{
        justify-content: center;
    }
}

@media (max-width: 414px) {
    .case-pre {
        margin: 30px 0 20px;
    }

    .case-badges {
        gap: 8px 8px;
        margin-bottom: 10px;
    }
}